<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_articles_latest
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<div class="latestnews<?php echo $moduleclass_sfx; ?>">
    <ul class="latestnews">

        <?php if(count($list->sooner_obj) > 0): ?>
            <?php foreach ($list->sooner_obj as $item) :  ?>
                <li class="newer">
                    <a alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" href="<?php echo $item->link; ?>">
                        <?php echo $item->title; ?></a>
                </li>
            <?php endforeach; ?>
        <?php endif; ?>

        <?php if(count($list->older_obj) > 0): ?>
            <?php foreach ($list->older_obj as $item) :  ?>
                <li class="older">
                    <a alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" href="<?php echo $item->link; ?>">
                        <?php echo $item->title; ?></a>
                </li>
            <?php endforeach; ?>
        <?php endif; ?>
    </ul>
</div>
